package sz.szsmk.citizencard.mvp.contract;

import sz.szsmk.citizencard.model.network.bean.response.IbaseBean;
import sz.szsmk.citizencard.model.network.bean.response.QueryUserCardResponse;
import sz.szsmk.citizencard.ui.base.IBaseContact;

import java.util.List;

/**
 * Copyright (c)2018
 * author: zdh
 * created on: 2018/6/4 19:59
 * description:
 */
public interface IUserAddCardContact {

    interface IUserAddCardPresenter<T extends IBaseContact.IBaseView> extends IBaseContact.IBasePresenter {
        void queryUserCard();

        void addUserCardFav(QueryUserCardResponse.DataBean dataBean);

        void getUserBindCard();
    }

    interface IUserAddCardView extends IBaseContact.IBaseView {
        // 获得数据失败
        void updataError();

        void queryUserCardSucc(List<QueryUserCardResponse.DataBean> data);

        void queryUserCardFail(QueryUserCardResponse response);

        void addUserCardFavSucc(IbaseBean response);

        void addUserCardFavFail(String message);

        void getBindCardSucc(String msg);

        void getBindCardFail(String msg);
    }

}
